<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include/include :: header('修改参数')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="editForm" th:action="@{/admin/param}" th:object="${viewobject}">
            <input id="publicId" name="publicId" th:field="*{publicId}"  type="hidden">
            <input type="hidden" name="oper" id="oper" th:value="${oper}"/>
            <div class="form-group">	
                <label class="col-sm-3 control-label is-required">参数名称：</label>
                <div class="col-sm-8">
                    <input id="publicName" name="publicName" th:field="*{publicName}" class="form-control" type="text" maxlength="60" required>
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label is-required">参数键名：</label>
                <div class="col-sm-8">
                    <input id="publicKey" name="publicKey" th:field="*{publicKey}" class="form-control" type="text" maxlength="60" required>
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label is-required">参数键值：</label>
                <div class="col-sm-8">
                    <input id="publicValue" name="publicValue" th:field="*{publicValue}" class="form-control" type="text" maxlength="60" required>
                </div>
            </div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">参数状态：</label>
				<div class="col-sm-8">
				    <div class="radio-box" th:each="dict : ${@dict.getType('status_type')}">
						<input type="radio" th:id="${dict.id}" name="status" th:value="${dict.value}" th:field="*{status}">
						<label th:for="${dict.id}" th:text="${dict.label}"></label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">参数类型：</label>
				<div class="col-sm-8">
				    <div class="radio-box" th:each="dict : ${@dict.getType('dict_type')}">
						<input type="radio" th:id="${dict.id}" name="systemFlag" th:value="${dict.value}" th:field="*{systemFlag}">
						<label th:for="${dict.id}" th:text="${dict.label}"></label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">参数小类：</label>
				<div class="col-sm-8">
				    <select name="publicType" class="form-control m-b" th:with="type=${@dict.getType('param_type')}">
				        <option th:each="dict : ${type}" th:text="${dict.label}" th:value="${dict.value}" th:field="*{publicType}"></option>
				    </select>
				</div>
			</div>
    	</form>
    </div>
    <th:block th:include="include/include :: footer" />
    <script th:src="@{/pages/sysadm/param/paramEdit.js}"></script>
</body>
</html>
